import { Inject, Controller, Get } from '@midwayjs/decorator';
import { Context } from '@midwayjs/koa';
import { TypeService } from '../service/type.service';

@Controller('/type')
export class TypeController {
  @Inject()
  ctx: Context;

  @Inject()
  typeService: TypeService;

  @Get('/finds')
  async finds(): Promise<any> {
    const result = await this.typeService.finds();
    return result;
  }
}
